using Admin.NET.Core;
using MOKA.TPM.Entity;
using System.ComponentModel.DataAnnotations;

namespace MOKA.TPM.Service.Dto;

/// <summary>
/// 页面输出参数 （非采物料参数）
/// </summary>
public class PartsParasOutput : PartsParas
{
    public int ParaName { get; set; } //唯一索引

    public Guid PartsId { get; set; } //唯一索引

    /// <summary>
    /// 关联对象等
    /// </summary>
    //public string? WePartyLevelName { get; set; }
}

/// <summary>
/// 单ID查询参数
/// </summary>
public class PartsParasInput
{
    /// <summary>
    /// </summary>
    public long? Id { get; set; }

    /// <summary>
    /// 参数名称
    /// </summary>
    public int? ParaName { get; set; }  //唯一索引

    /// <summary>
    /// 非采物料
    /// </summary>
    public Guid? PartsId { get; set; }  //唯一索引
}

/// <summary>
/// 普通查询参数
/// </summary>
public class GetPartsParasInput : BaseOrderInput
{
}

/// <summary>
/// 分页查询参数
/// </summary>
public class PagePartsParasInput : BasePageInput
{
    /// <summary>
    /// 参数名称
    /// </summary>
    public int? ParaName { get; set; }  //唯一索引

    /// <summary>
    /// 非采物料
    /// </summary>
    public Guid? PartsId { get; set; }  //唯一索引
}

/// <summary>
/// 新增记录参数
/// </summary>
public class AddPartsParasInput
{
    /// <summary>
    /// 非采物料
    /// </summary>
    public Guid PartsId { get; set; }

    /// <summary>
    /// 参数名称
    /// </summary>
    public int ParaName { get; set; }

    /// <summary>
    /// 参数值
    /// </summary>
    [Required, MaxLength(200)]
    public string ParaValue { get; set; } = string.Empty;

    /// <summary>
    /// 创建人
    /// </summary>
    [Required, MaxLength(20)]
    public string CreateUser { get; set; } = string.Empty;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    [MaxLength(20)]
    public string? UpdateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
}

/// <summary>
/// 更新参数
/// </summary>
public class UpdatePartsParasInput
{
    /// <summary>
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 非采物料
    /// </summary>
    public Guid PartsId { get; set; }

    /// <summary>
    /// 参数名称
    /// </summary>
    public int ParaName { get; set; }

    /// <summary>
    /// 参数值
    /// </summary>
    [MaxLength(200)]
    public string ParaValue { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    [MaxLength(20)]
    public string CreateUser { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    [MaxLength(20)]
    public string? UpdateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
}

/// <summary>
/// 删除参数
/// </summary>
public class DeletePartsParasInput
{
    /// <summary>
    /// </summary>
    public long Id { get; set; }
}

/// <summary>
/// 更新部分数据参数
/// </summary>
public class UpdateSomePartsParasInput
{
    /// <summary>
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 参数名称
    /// </summary>
    public string? ParaName { get; set; }  //唯一索引

    /// <summary>
    /// 非采物料
    /// </summary>
    public string? PartsId { get; set; }  //唯一索引
}